package com.example.blog.service;


import com.example.blog.dto.LoginUserDto;
import com.example.blog.dto.UserInfoD;
import com.example.blog.dto.UserInfoDto;
import com.example.blog.entity.UserInfo;
import com.example.blog.vo.RoleAndPermission;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;
import java.util.List;

public interface UserInfoService {
    HashMap getToken(LoginUserDto loginUserDto, HttpServletRequest httpServletRequest) throws Exception;

    UserInfo register(UserInfoDto userInfoDto, String realIp);

    UserInfo update(UserInfo strictMap);

    List<RoleAndPermission> getById(String id);

    UserInfoD queryByUserId(String userId);
}
